
import VueRouter from "vue-router"
import home from "./components/tabbar/home.vue"
import member from "./components/tabbar/member.vue"
import search from "./components/tabbar/search.vue"
import shopcar from "./components/tabbar/shopcar.vue"
import newslist from "./components/news/newslist.vue"
import readmore from "./components/news/readmore.vue"

import Vue from "vue"
Vue.use(VueRouter)
var router = new VueRouter({
	routes: [
		{path:"/",redirect:"/home"},
		{path:"/member",component:member},
		{path:"/home",component:home},
		{path:"/search",component:search},
		{path:"/shopcar",component:shopcar},
		{path:"/news/list",component:newslist},
		{path:"/news/list/readmore/:id",component:readmore, props: true },
	],
	linkActiveClass:"mui-active"
})
export default router